using System.Collections.Generic;
using System;

namespace SerialPortLibrary
{
	/// <summary>
	/// 串行数据
	/// </summary>
	/// <remarks></remarks>
	public interface ISerialData
	{
        /// <summary>
        /// 串口号
        /// </summary>
        string ComID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        byte[] Data { get; set; }
        /// <summary>
        /// 
        /// </summary>
        SerialException Error { get; set; }

    }
    public class SerialException
    {
        public int ErrorType { get; set; } = 0;
        public string ErrorMessage { get; set; }
    }
}
